// 主题类型定义
export type ThemeType = 'light' | 'dark';

// 布局风格类型
export type LayoutStyle = 'side' | 'top' | 'mix';

// 主题设置接口
export interface ThemeSettings {
  // 基础设置
  layoutStyle: LayoutStyle;
  primaryColor: string;
  isDarkMode: boolean;
  enableTabs: boolean;
  enableOnlyOneTab: boolean;
  
  // 显示设置
  showLogo: boolean;
  showBreadcrumb: boolean;
  
  // 布局设置
  fixedHeader: boolean;
  fixedSidebar: boolean;
  
  // 动画设置
  enableAnimation: boolean;
}

// 主题配置接口
export interface ThemeConfig {
  type: ThemeType;
  primaryColor: string;
  backgroundColor: string;
  textColor: string;
  borderColor: string;
  sidebarBackground: string;
  sidebarTextColor: string;
  headerBackground: string;
  headerTextColor: string;
}

// 预设主题颜色
export const presetColors = [
  '#1890ff', // 拂晓蓝（默认）
  '#722ed1', // 酱紫
  '#13c2c2', // 明青
  '#52c41a', // 极光绿
  '#fa8c16', // 日暮
  '#f5222d', // 薄暮
  '#eb2f96', // 法式洋红
  '#faad14', // 金盏花
];

// 默认主题设置
export const defaultThemeSettings: ThemeSettings = {
  layoutStyle: 'side',
  primaryColor: '#1890ff',
  isDarkMode: false,
  enableTabs: true,
  enableOnlyOneTab: false,
  showLogo: true,
  showBreadcrumb: true,
  fixedHeader: true,
  fixedSidebar: true,
  enableAnimation: true,
};

// 主题配置映射
export const themeConfigs: Record<ThemeType, ThemeConfig> = {
  light: {
    type: 'light',
    primaryColor: '#1890ff',
    backgroundColor: '#f0f2f5',
    textColor: 'rgba(0, 0, 0, 0.85)',
    borderColor: '#f0f0f0',
    sidebarBackground: '#fff',
    sidebarTextColor: 'rgba(0, 0, 0, 0.85)',
    headerBackground: '#fff',
    headerTextColor: 'rgba(0, 0, 0, 0.85)'
  },
  dark: {
    type: 'dark',
    primaryColor: '#1890ff',
    backgroundColor: '#141414',
    textColor: 'rgba(255, 255, 255, 0.85)',
    borderColor: '#303030',
    sidebarBackground: '#001529',
    sidebarTextColor: 'rgba(255, 255, 255, 0.65)',
    headerBackground: '#001529',
    headerTextColor: 'rgba(255, 255, 255, 0.85)'
  }
}; 